package models

import (
	"github.com/astaxie/beego/orm"
)

type Category struct {
	Id       int
	Name     string     `description:"名称"`
	Image    string     `description:"图片"`
	Products []*Product `orm:"reverse(many)" description:"分类商品"`
}

func init() {
	orm.RegisterModel(new(Category))
}
